﻿using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Smart.SignalRServer
{
    [HubName("isignalr")]
    public class SignalRHubExtend : Hub
    {
        public void Send(string name, string message)
        {
            name = "(IP:" + CommonMethod.GetIP() + ") " + name;
            // Call the broadcastMessage method to update clients.
            Clients.All.broadcastMessage(name, message);
        }
    }
}